...from libxl_cpuid_parse_config_xend. value is unsigned so this doesn't
work, and either way the following comparison on it being bigger than 3
does what was intended here anyway.
Coverity-ID:
1055614
Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
}
value = str[1] - 'a';
endptr = strchr(str, '=');
- if (value < 0 || value > 3 || endptr == NULL) {
+ if (value > 3 || endptr == NULL) {
return 4;
}
str = endptr + 1;